package accs.model.proxy;

import accs.model.Account;

public class Connection implements Account {

	private String originHost;
	private int originPort;
	
	private String host;
	private String ip;
	private String country;
	private boolean proxy;
	private boolean timematch;
	private boolean blacklist;
	private boolean browsermatch;
	private String dns;
	private String dnscountry;

	public Connection(String originHost, int originPort, String host, String ip, String country, boolean proxy,
			boolean timematch, boolean browsermatch, String dns, String dnscountry, boolean blacklist) {
		super();
		this.originHost=originHost;
		this.originPort=originPort;
		this.host = host;
		this.ip = ip;
		this.country = country;
		this.proxy = proxy;
		this.timematch = timematch;
		this.browsermatch = browsermatch;
		this.dns = dns;
		this.dnscountry = dnscountry;
		this.blacklist = blacklist;
	}

	public String getHost() {
		return host;
	}

	public String getIp() {
		return ip;
	}

	public String getCountry() {
		return country;
	}

	public boolean isProxy() {
		return proxy;
	}

	public boolean isTimematch() {
		return timematch;
	}

	public boolean isBrowsermatch() {
		return browsermatch;
	}
	
	public boolean isBlacklist() {
		return blacklist;
	}

	public String getDns() {
		return dns;
	}

	public String getDnscountry() {
		return dnscountry;
	}

	public String toString(){
		return originHost+":"+originPort+" | "+host+" | "+country+" | "+host+" | "+proxy+" | "+timematch+" | "+browsermatch+" | "+dns+" | "+dnscountry+" | "+blacklist+" |";
	}

}
